package com.studentexam.student.dao;

import com.studentexam.student.model.ExamQuestion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamQuestionMapper {
    int insertExamQuestion(ExamQuestion examQuestion);

    int updateExamQuestion(ExamQuestion examQuestion);

    int delExamQuestion(Integer examquestionid);

    List<ExamQuestion> getByExamQuestionid(Integer questionbankid);

    List<ExamQuestion> getAllExamQuestion(ExamQuestion examQuestion);

    /*外键查询方法*/
    int getQuestionBankCount(Integer questionbankid);
    int getExamCount(Integer examid);
}
